﻿@{
    ViewBag.Title = "版本号列表";
    Layout = "~/Views/Shared/_ContentLayout.cshtml";
}
@model List<ADZ_APPUpGradeInfo>

<table class="table table-bordered table-hover definewidth m10">
    <thead>
        <tr>
            <th>系统版本号</th>
            <th>程序包下载地址</th>
            <th>是否强制更新</th>
            <th>系统类型</th>
            <th>升级内容描述</th>
            <th>创建时间</th>
            <th>更新时间</th>
            <th>状态</th>
            <th>内部版本号</th>
            <th>最近强制升级内部版本</th>
            <th>操作</th>

        </tr>
    </thead>
    @if (Model != null && Model.Count != 0)
    {
        foreach (var m in Model)
        {
            <tr>
                <td>@m.SystemVersion</td>
                <td>@m.DowloadAddress</td>
                <td>@(m.IsForced == 0 ? "否" : "是")</td>
                <td>
                    @switch (m.SystemType)
                    {
                        case 1:
                            <div>andriod版</div>
                            break;
                        case 2:
                        <div>ios版</div>
                            break;
                    }
                </td>
                <td class="cl_2">@m.Description</td>
                <td class="littleblue">@m.CreateTime.ToString(1, "")</td>
                <td class="cl_3">@m.UpdateTime.ToString(1, "")</td>
                <td class="cl_4">@(m.IsDel == 0 ? "正常" : "删除")</td>
                <td>@m.InnoVersion</td>
                <td>@m.LastForceInnoVersion</td>
                <td>
                    <a class="cl_1 agent_2 common" href="@Url.Action("EditEdition", "Edition", new { ID = m.ID })">编辑</a>                    
                </td>
            </tr>
        }
    }
</table>
